﻿@using QuanLyHocSinh.Controllers
<aside class="main-sidebar">
    <section class="sidebar">
        @* BEGIN Search *@
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search...">
                <span class="input-group-btn">
                    <button type="submit" name="search" id="search-btn" class="btn btn-flat">
                        <i class="fa fa-search"></i>
                    </button>
                </span>
            </div>
        </form>
        @* END Search *@
        @* BEGIN Menu *@
        <ul class="sidebar-menu">
            <li class="header">Chức năng</li>
            <li class="@(ViewContext.RouteData.Values["Controller"].ToString() == nameof(HomeController).Replace("Controller", "") ? "active" : "")">
                <a href="@Url.Action("Index", "Home")">
                    <i class="fa fa-home"></i>
                    <span>Tổng quan</span>
                </a>
            </li>
            @*<li class="@(ViewContext.RouteData.Values["Controller"].ToString() == nameof(HocSinhController).Replace("Controller", "") ? "active" : "")">
                <a href="@Url.Action("DanhSach", "HocSinh")">
                    <i class="fa fa-bank"></i>
                    <span>Học sinh</span>
                </a>
            </li>*@
            <li class="treeview @(ViewContext.RouteData.Values["Controller"].ToString() == nameof(HocSinhController).Replace("Controller", "") ? "active" : "")">
                <a href="#">
                    <i class="fa fa-bank"></i> <span>Học Sinh</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="@Url.Action("DanhSach", "HocSinh")">
                            <i class="glyphicon glyphicon-list"></i>
                            <span>Danh sách</span>
                        </a>
                    </li>
                    <li>
                        <a href="@Url.Action("TaoHocSinh", "HocSinh")">
                            <i class="glyphicon glyphicon-edit"></i>
                            <span>Thêm mới</span>
                        </a>
                    </li>
                </ul>
            </li>
        </ul>
        @* END Menu *@
    </section>
</aside>